﻿# coding: utf-8

import traceback
import StringIO
import sys

import wx

def __ShowTrace():
    excinfo = sys.exc_info()
    sio = StringIO.StringIO()
    traceback.print_exception(excinfo[0], excinfo[1], excinfo[2], None, sio)
    s = sio.getvalue()
    errorText = traceback.format_exc()
    sio.close()
    print errorText
    return errorText

__builtins__['SHOW_TRACE'] = __ShowTrace